﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatTiempoTaller.aspx.cs" Inherits="PatTiempoTaller" Title="PatTiempoTaller List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Tiempo Taller List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatTiempoTallerDataSource"
				DataKeyNames="IdGrupoCatalogo, IdOperacion"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatTiempoTaller.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="Id Grupo Catalogo" DataNavigateUrlFormatString="PatGrupoCatalogoEdit.aspx?IdGrupoCatalogo={0}" DataNavigateUrlFields="IdGrupoCatalogo" DataContainer="IdGrupoCatalogoSource" DataTextField="DescripcionGrupoCatalogo" />
				<data:HyperLinkField HeaderText="Id Operacion" DataNavigateUrlFormatString="PatTemparioEdit.aspx?IdOperacion={0}" DataNavigateUrlFields="IdOperacion" DataContainer="IdOperacionSource" DataTextField="DescripcionOperacion" />
				<asp:BoundField DataField="TiempoCliente" HeaderText="Tiempo Cliente" SortExpression="[TIEMPO_CLIENTE]"  />
				<asp:BoundField DataField="TiempoGarantia" HeaderText="Tiempo Garantia" SortExpression="[TIEMPO_GARANTIA]"  />
				<asp:BoundField DataField="TiempoMecanico" HeaderText="Tiempo Mecanico" SortExpression="[TIEMPO_MECANICO]"  />
				<data:BoundRadioButtonField DataField="Activo" HeaderText="Activo" SortExpression="[ACTIVO]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatTiempoTaller Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnPatTiempoTaller" OnClientClick="javascript:location.href='PatTiempoTallerEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatTiempoTallerDataSource ID="PatTiempoTallerDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:PatTiempoTallerProperty Name="PatGrupoCatalogo"/> 
					<data:PatTiempoTallerProperty Name="PatTempario"/> 
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatTiempoTallerDataSource>
	    		
</asp:Content>



